home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2006 May
/
PCWMAY06.iso
/
Software
/
Freeware
/
First Page 2006 3.00
/
fp2006-final-3.00-setup.exe
/
{app}
/
Iscripts
/
Forms Misc
/
auto-fill.izs
< prev
next >
Wrap
Text File
|
2005-09-27
|
5KB
|
171 lines
<!NOWIZARD>
<!TITLE>Auto Fill
<!/TITLE>
<!DESCRIPTION>This script shows you how to set a text field value in one window by entering text in another window.<!/DESCRIPTION>
<!CATEGORY>Forms<!/CATEGORY>
<!SCRIPT>
<!-- START OF SCRIPT -->
<!-- HOW TO INSTALL AUTO FILL:
1. Copy code into the HEAD section of document
2. Put last coding into the BODY section of document -->
<!-- STEP ONE: Add code into HEAD section of document -->
<HEAD>
<script type="text/javascript">
<!-- Original at: http://hotarea.com/ (Vladimir Geshanov) -->
<!-- Begin
function explain( name, output, msg ) {
newwin = window.open( '', '', 'top=80,left=60,width=350,height=200' );
if ( !newwin.opener ) newwin.opener = self;
newwin.opener.document.bgColor = "EBEBEB";
with ( newwin.document ) {
open();
write( '<body onLoad="document.form.box.focus()">' );
write( '<form name=form ' );
write( ' onSubmit=opener.document.bgColor="EAE8E4";window.close()>' );
write( msg );
write( '<br>' );
write( '<font face=Verdana size=2>' );
write( '<p>You may enter your ' + name + ' here ' );
write( '<p>and it will be copied into the form for you.</p>' );
write( '<center>' + name + ':' );
write( '</font>' );
write( '<input type=text name=box size=10 onKeyUp=' + output + '=this.value>' );
write( ' ' );
write( '<input type=submit value="Finish">' );
write( '</center></form>' );
close();
}
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Add code into BODY section of document -->
<BODY>
<div align="center">
<span class=DefMenuText>(click on "help" to open the new window)</span>
<form name=form>
<span class=PreText>Username:</span>
<input type=text name=username size=10>
<span class=BodyText>[<a href="javascript:explain(
'User Name',
'opener.document.form.username.value',
'<font face=Verdana size=2>' +
'The user name field is where you select a user name that ' +
'you will use every time you access this site.'
);">help</a>]</span>
<br>
<span class=PreText>Password:</span>
<input type=text name=password size=10>
<span class=BodyText>[<a href="javascript:explain(
'Password',
'opener.document.form.password.value',
'<font face=Verdana size=2>' +
'The password field is where you select a unique password ' +
'for your account. This password will be required each ' +
'time you login to the site.'
);">help</a>]</span>
</form>
</div>
<!-- END OF SCRIPT -->
<!/SCRIPT>
<!PREVIEW>
<!-- START OF SCRIPT -->
<!-- HOW TO INSTALL AUTO FILL:
1. Copy code into the HEAD section of document
2. Put last coding into the BODY section of document -->
<!-- STEP ONE: Add code into HEAD section of document -->
<HEAD>
<script type="text/javascript">
<!-- Original at: http://hotarea.com/ (Vladimir Geshanov) -->
<!-- Begin
function explain( name, output, msg ) {
newwin = window.open( '', '', 'top=80,left=60,width=350,height=200' );
if ( !newwin.opener ) newwin.opener = self;
newwin.opener.document.bgColor = "EBEBEB";
with ( newwin.document ) {
open();
write( '<body onLoad="document.form.box.focus()">' );
write( '<form name=form ' );
write( ' onSubmit=opener.document.bgColor="EAE8E4";window.close()>' );
write( msg );
write( '<br>' );
write( '<font face=Verdana size=2>' );
write( '<p>You may enter your ' + name + ' here ' );
write( '<p>and it will be copied into the form for you.</p>' );
write( '<center>' + name + ':' );
write( '</font>' );
write( '<input type=text name=box size=10 onKeyUp=' + output + '=this.value>' );
write( ' ' );
write( '<input type=submit value="Finish">' );
write( '</center></form>' );
close();
}
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Add code into BODY section of document -->
<BODY>
<div align="center">
<span class=DefMenuText>(click on "help" to open the new window)</span>
<form name=form>
<span class=PreText>Username:</span>
<input type=text name=username size=10>
<span class=BodyText>[<a href="javascript:explain(
'User Name',
'opener.document.form.username.value',
'<font face=Verdana size=2>' +
'The user name field is where you select a user name that ' +
'you will use every time you access this site.'
);">help</a>]</span>
<br>
<span class=PreText>Password:</span>
<input type=text name=password size=10>
<span class=BodyText>[<a href="javascript:explain(
'Password',
'opener.document.form.password.value',
'<font face=Verdana size=2>' +
'The password field is where you select a unique password ' +
'for your account. This password will be required each ' +
'time you login to the site.'
);">help</a>]</span>
</form>
</div>
<!-- END OF SCRIPT -->
<!/PREVIEW>
<!RELATED>NONE<!/RELATED>